<!DOCTYPE html>
<html lang="en">
<head >
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<script type="text/javascript">
	function getdate(){
var myDate = new Date();
alert(myDate.toLocaleString( ));
}


</script>
<body onload ="getdate()">
	
</body>

</html>